<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <h1 v-if="ok">Yes</h1>
    <h1 v-else>时间萨克吧</h1>

    <div>
        <h3 v-if="type==='A'">{{type}}</h3>
        <h3 v-else-if="type==='B'">B</h3>
        <h3 v-else>c</h3>
    </div>

</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
<script>
    var vm = new Vue({
        el:"#app",
        //model :数据
        data:{
            ok:true,
            type:"A"
        }
    });
</script>
</body>
</html>
